FROM frolvlad/alpine-java:jdk8-slim
LABEL maintainer=xtaylkss@163.com

ENV PARAMS="--server.port=8080"
COPY target/*.jar /app.jar
EXPOSE 8080
ENTRYPOINT ["/bin/sh","-c","java -Xms512M -Xmx1024M -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar /app.jar ${PARAMS}"]
